import React, {Component} from 'React';
import store from '../../store'
export default class login extends Component{
    constructor(props){
        super(props);
        this.state=store.getState()
    }

    changeStatus(){
        if(this.state.loginStatus==false){
            this.state.loginStatus=true
        }
    }

    render(){
        return(
            <div>
                <button onClick={this.changeStatus.bind(this)}>登录</button>
            </div>
        )
    }
}